package com.lee.impl;

import com.alibaba.fastjson.JSONObject;
import com.lee.WeiXinService;
import com.lee.response.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zfl_a
 * @date 2020/4/4
 * @project login-authorization-parent
 */
@RestController
@Slf4j
public class WeiXinServiceImpl implements WeiXinService {

    @Override
    public ResponseResult getUserInfo( String userToken) {

        ResponseResult result = new ResponseResult();
        result.setData("用户信息");
        return result;
    }

    /**
     * 测试使用
     * @param publicId 用于区分是来自qq联合登录还是微信联合登录，或者其它
     * @return
     */
//    @Override
//    public String doWeiXin(@RequestParam(name="publicId")String publicId) {
//        log.info("接收到的联合登录方为：{}",publicId);
//        return publicId;
//    }

}
